home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19990422-19990725
/
000265_news@columbia.edu _Mon Jul 12 16:20:28 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA09643
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 12 Jul 1999 16:20:28 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA00354
for kermit.misc@watsun.cc.columbia.edu; Mon, 12 Jul 1999 15:58:59 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: "quertyq@hotmail.com" <quertyq@hotmail.com>
Subject: Incrementing a value stored as a macro
Date: Mon, 12 Jul 1999 17:35:47 GMT
Organization: Deja.com - Share what you know. Learn what you don't.
Message-ID: <7md91i$p30$1@nnrp1.deja.com>
To: kermit.misc@columbia.edu
Good Afternoon:
I am using Kermit 95 Version 1.l.17.
How can I have a value currently assigned as a macro, to be
treated as an integer, and have it incremented?
Let me explain ...
I am using Figure 18-2 Mass mailing script as the example
( pg 412 in the 2nd edition C-Kermit manual ):
def SPLIT {
asg name \%1
asg user \%2
}
My code snippet is as follows:
define valu 7
echo ** valu = \m(valu)
increment \m(valu)
echo ** valu = \m(valu)
The result is:
** value = 7
** value = 7
The "increment" command does not increase the value of "\m(valu)".
How can I increment a value stored in a macro? _or_
How can I convert the value within the macro to an integer variable?
Thanks,
Matt
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.